package cn.znzz.cjm.service.impl;

import cn.znzz.cjm.domain.Employee;
import cn.znzz.cjm.mapper.EmployeeMapper;
import cn.znzz.cjm.service.IEmployeeService;
import cn.znzz.cjm.util.AjaxResult;
import cn.znzz.cjm.vo.UserInfo;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chenjiangmin
 * @since 2021-12-15
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements IEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;
    @Override
    public AjaxResult findUserInfo(Long id) {
        UserInfo userInfo = employeeMapper.findUserInfo(id);
        System.out.println(userInfo);
        return AjaxResult.me().setResultObj(userInfo);
    }
}
